<template>
  <ul class="todo-main">
    <Item v-for="todo in todos"
          :key="todo.id"
          :todo="todo"
          :change="change"
          :deleteTodo="deleteTodo"/>
  </ul>
</template>

<script>
import Item from "@/components/Item.vue";
export default {
  name: "List",
  components:{
    Item
  },
  props:['todos','change','deleteTodo']
}
</script>










<style scoped>
.todo-main {
  margin-left: 0px;
  border: 3px solid darkseagreen;
  border-radius: 2px;
  padding: 0px;
}
</style>
